package org.charry.lib.database_utility;

import java.sql.*;

/**
 * Hello world!
 * 
 */
public class App {
	public static void main(String[] args) {
		System.out.println("Hello World!");
		try {
			ResultSet rs = DatabaseFactory.getInstance("apple").executeQuery(
					"select * from x_ir");

			while (rs.next()) {
				System.out.println(rs.getString(1));
				break;
			}

			ResultSet rs2 = DatabaseFactory.getInstance("apple").executeQuery(
					"select * from x_ir");

			while (rs2.next()) {
				System.out.println(rs.getString(4));
				break;
			}

			ResultSet ss = DatabaseFactory.getInstance("banana").executeQuery(
			"select * from x_ir");
			
		} catch (Exception e) {
			System.out.println(e);
		}
	}
}
